package com.dgut.usermodule.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dgut.usermodule.dao.LogJpaRepository;
import com.dgut.usermodule.entity.Log;
@Service
@Transactional
public class LogServiceImpl implements LogService{
	@Autowired
	private LogJpaRepository dao;
	@Override
	public Page<Log> findByName(String name,Pageable pageable) {
		return dao.findByUserName(name,pageable);
	}

	@Override
	public Page<Log> findAll(Specification<Log> spec, Pageable pageable) {
		return dao.findAll(spec, pageable);
	}

}
